home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form4
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Example 4: FlowChart"
- ClientHeight = 4155
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 7365
- DrawStyle = 5 'Transparent
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H000000C0&
- Height = 4560
- Left = 1035
- LinkTopic = "Form4"
- MDIChild = -1 'True
- ScaleHeight = 4155
- ScaleWidth = 7365
- Tag = "4"
- Top = 1140
- Width = 7485
- Begin EasynetLib.Easynet Net1
- Height = 3465
- Left = 240
- TabIndex = 4
- Top = 360
- Width = 4065
- _Version = 65538
- _ExtentX = 7170
- _ExtentY = 6112
- _StockProps = 101
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- BorderStyle = 1
- xGrid = 5
- yGrid = 5
- Shape = 1
- FillColor = 16777215
- DrawColor = 8421504
- ForeColor = 0
- DrawWidth = 1
- Oriented = -1 'True
- ReadOnly = 0 'False
- MultiSel = -1 'True
- ScrollBars = 3
- CanDrawNode = -1 'True
- CanDrawLink = -1 'True
- CanMoveNode = -1 'True
- CanSizeNode = -1 'True
- CanStretchLink = -1 'True
- CanMultiLink = -1 'True
- Transparent = 0 'False
- DrawStyle = 5
- Alignment = 7
- ShowGrid = 0 'False
- LinkHead = 7
- DoSelChange = -1 'True
- DoAddNode = -1 'True
- DoAddLink = -1 'True
- Hiding = 0 'False
- ImageFile = ""
- DisplayHandles = -1 'True
- Zoom = 100
- AutoSize = 2
- AutoScroll = -1 'True
- End
- Begin VB.PictureBox Picture1
- Appearance = 0 'Flat
- AutoSize = -1 'True
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 930
- Index = 3
- Left = 4500
- Picture = "FLOWCHAR.frx":0000
- ScaleHeight = 900
- ScaleWidth = 900
- TabIndex = 3
- Top = 3030
- Visible = 0 'False
- Width = 930
- End
- Begin VB.PictureBox Picture1
- Appearance = 0 'Flat
- AutoSize = -1 'True
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 930
- Index = 2
- Left = 4500
- Picture = "FLOWCHAR.frx":0802
- ScaleHeight = 900
- ScaleWidth = 900
- TabIndex = 2
- Top = 2070
- Visible = 0 'False
- Width = 930
- End
- Begin VB.PictureBox Picture1
- Appearance = 0 'Flat
- AutoSize = -1 'True
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 930
- Index = 1
- Left = 4500
- Picture = "FLOWCHAR.frx":1004
- ScaleHeight = 900
- ScaleWidth = 900
- TabIndex = 1
- Top = 1110
- Visible = 0 'False
- Width = 930
- End
- Begin VB.PictureBox Picture1
- Appearance = 0 'Flat
- AutoSize = -1 'True
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 930
- Index = 0
- Left = 4500
- Picture = "FLOWCHAR.frx":1806
- ScaleHeight = 900
- ScaleWidth = 900
- TabIndex = 0
- Top = 150
- Visible = 0 'False
- Width = 930
- End
- Attribute VB_Name = "Form4"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub banner4()
- Dim idLink2&, idLink1&
- Dim org&, dst&
- With Net1
- .AddNodeItem
- .X1 = 200
- .Y1 = 200
- .ForeColor = RGB(0, 0, 0)
- .Text = "BEGIN"
- .Picture = Picture1(1).Picture
- .Shape = 2
- .Type = 1
- org = .item
- .AddNodeItem
- .X1 = 200
- .Y1 = 2200
- .Text = "STEP1"
- .Picture = Picture1(0).Picture
- .Type = 0
- dst = .item
- .AddLinkItem org, dst
- .AddNodeItem
- .X1 = 2200
- .Y1 = 2200
- .Text = "Success?"
- .Picture = Picture1(2).Picture
- .Shape = 3
- .Type = 2
- org = dst
- dst = .item
- .AddLinkItem org, dst
- .AddNodeItem
- .X1 = 4200
- .Y1 = 1000
- .Text = "STEP3"
- .Picture = Picture1(0).Picture
- .Type = 0
- org = dst
- dst = .item
- .AddLinkItem org, dst
- .PointCount = 1
- .PointX(0) = 2640
- .PointY(0) = 1440
- .Text = "YES"
- idLink1 = .item
- .AddNodeItem
- .X1 = 4200
- .Y1 = 3400
- .Text = "STEP2"
- .Shape = 0
- .Picture = Picture1(3).Picture
- .Type = 3
- dst = .item
- .AddLinkItem org, dst
- .PointCount = 1
- .PointX(0) = 2640
- .PointY(0) = 3840
- .Text = "NO"
- .LinkHead = 6
- idLink2 = .item
- .AddNodeItem
- .X1 = 6200
- .Y1 = 2200
- .Text = "END"
- .ForeColor = RGB(0, 0, 0)
- .Picture = Picture1(1).Picture
- .Shape = 2
- .Type = 1
- dst = .item
- .item = idLink1
- org = .dst
- .AddLinkItem org, dst
- .item = idLink2
- org = .dst
- .AddLinkItem org, dst
- .LinkHead = 6
- .item = 0
- End With
- End Sub
- Private Sub Form_Activate()
- ActivateForm
- End Sub
- Private Sub Form_Deactivate()
- DeactivateForm
- End Sub
- Private Sub Form_Load()
- MDI1.ShowExample(3).Enabled = False
- Net1.Left = 0
- Net1.Top = 0
- SpeedON Net1
- banner4
- SpeedOFF Net1
- End Sub
- Private Sub Form_Resize()
- If WindowState <> 1 And ScaleHeight <> 0 Then
- Net1.Height = ScaleHeight
- Net1.Width = ScaleWidth
- End If
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- MDI1.ShowExample(3).Enabled = True
- MDI1.Command5.Enabled = False
- MDI1.Command5.Caption = "Comments "
- End Sub
- Private Sub Net1_AddLink()
- Net1.DrawStyle = 0
- Net1.ForeColor = RGB(0, 0, 255)
- End Sub
- Private Sub Net1_AddNode()
- Net1.Picture = Picture1(0).Picture
- End Sub
- Private Sub Net1_DblClick()
- If Net1.item <> 0 Then
- If Net1.IsLink = False Then
- Legend = Net1.Text
- Picnum = Net1.Type
- AutoSize = Net1.AutoSize
- Alignment = Net1.Alignment
- frmLegend.Show 1
- If Ok Then
- Net1.Text = Legend
- Net1.Type = Picnum
- Net1.AutoSize = AutoSize
- Net1.Alignment = Alignment
- Net1.Picture = Picture1(Picnum).Picture
- 'Choose a shape that is near picture shape
- Select Case Picnum
- Case 0 ' Rectangle
- Net1.Shape = 1
- Case 1
- Net1.Shape = 2
- Case 2
- Net1.Shape = 3
- Case 3
- Net1.Shape = 0
- End Select
- End If
- End If
- End If
- End Sub
- Private Sub Net1_KeyDown(KeyCode As Integer, Shift As Integer)
- If KeyCode = KEY_DELETE Then
- Net1.DeleteSel
- End If
- End Sub
- Private Sub Net1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- CursorShape Net1
- End Sub
-